/**
 * 文件名称 : Input.java
 * <p>
 * 作者信息 : evanhu
 * <p>
 * 创建时间 : 2011-7-21, 下午8:29:39
 * <p>
 * 版权声明 : Copyright (c) 2009-2012 CIeNET Ltd. All rights reserved
 * <p>
 * 评审记录 :
 * <p>
 */

package com.ttomato.game.framework;

import java.util.List;

/**
 * 请在这里增加文件描述
 * <p>
 */
public interface Input
{
    public static class KeyEvent
    {
        public static final int KEY_DOWN = 0;
        
        public static final int KEY_UP = 1;
        
        public int type;
        
        public int keyCode;
        
        public char keyChar;
    }
    
    public static class TouchEvent
    {
        public static final int TOUCH_DOWN = 0;
        
        public static final int TOUCH_UP = 1;
        
        public static final int TOUCH_DRAGGED = 2;
        
        public int type;
        
        public int x, y;
        
        public int pointer;
    }
    
    public boolean isKeyPressed(int keyCode);
    
    public boolean isTouchDown(int pointer);
    
    public int getTouchX(int pointer);
    
    public int getTouchY(int pointer);
    
    public float getAccelX();
    
    public float getAccelY();
    
    public float getAccelZ();
    
    public List<KeyEvent> getKeyEvents();
    
    public List<TouchEvent> getTouchEvents();
}
